import { http } from "../https";
// import { IUserInfoApi } from "@/types/apis/apis.t";
import type{ ILogInParams } from "../../types/apis/log-in.t";
// import { IUploadFile } from "@/types/types.t";
// 登录接口
export const LOG_IN = (data: ILogInParams) => http.post("/userbe/login", data);
// 安全退出登录
export const LOG_OUT_SAFELY = () => http.post("v1/login/logout");
// 获得用户信息
export const GET_USER_INFO = () => http.get<any>("/userbe/userinfo");
export const GETsss = () => http.get<any>("/");
// 获得权限列表
// export const GET_PERMISSION_LIST = () => http.post("v1/bus/menu/permissions");

// 上传图片
export const UPLOAD_FILES = (data: any) => http.post("v1/bus/file/upload", data, {
  contentType: "form-data-file"
});
